package control;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComponent;

import dialog.DlgAbout;

public class CtrAbout implements ActionListener{
	private DlgAbout frame;
	
	public CtrAbout(DlgAbout frame) {
		this.frame = frame;
	}
	
	public void actionPerformed(ActionEvent arg0) {
		JComponent onClick = (JComponent) arg0.getSource();
		if(onClick.getName().equalsIgnoreCase("btnClose")){
			frame.dispose();
		}
	}
}
